﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace EnterpriseDataBackuper
{
    class TreeViewItemProps
    {
        public static bool GetIsRootLevel(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsRootLevelProperty);
        }

        public static void SetIsRootLevel(
            DependencyObject obj, bool value)
        {
            obj.SetValue(IsRootLevelProperty, value);
        }

        public static readonly DependencyProperty IsRootLevelProperty =
            DependencyProperty.RegisterAttached(
            "IsRootLevel",
            typeof(bool),
            typeof(TreeViewItemProps),
            new UIPropertyMetadata(false));


        public static bool GetIsFile(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsFile);
        }

        public static void SetIsFile(
            DependencyObject obj, bool value)
        {
            obj.SetValue(IsFile, value);
        }

        public static readonly DependencyProperty IsFile =
            DependencyProperty.RegisterAttached(
            "IsFile",
            typeof(bool),
            typeof(TreeViewItemProps),
            new UIPropertyMetadata(false));

        public static bool GetIsSynchronized(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsSynchronized);
        }

        public static void SetIsSynchronized(
            DependencyObject obj, bool value)
        {
            obj.SetValue(IsSynchronized, value);
        }

        public static readonly DependencyProperty IsSynchronized =
            DependencyProperty.RegisterAttached(
            "IsSynchronized",
            typeof(bool),
            typeof(TreeViewItemProps),
            new UIPropertyMetadata(false));

    }
}
